<include file='Public:head'/>
<include file='Public:header'/>
<div class="container" style="margin-top:60px;">
    <div class="row">
        <div class="span12">
                <h2 class="text-center">修改文献信息</h2>
                <form style="margin-left:-100px;" class="form-horizontal" method="post" action="{:U(GROUP_NAME . '/Person/updateDochandle')}">
                
                <input type="hidden" value="{$doc.d_id}" name="d_id">

                  <div class="control-group">
                    <label class="control-label" for="docname">文献名</label>
                    <div class="controls">
                      <input type="text" value="{$doc.docname}" class="span5" id="docname" name="docname" placeholder="文献名" required>
                    </div>
                  </div>

                  <div class="control-group">
                    <label class="control-label">类别</label>
                    <div class="controls">
                    <if condition="$doc['status'] eq 0" >
                      <label class="radio">
                        <input value="0"  type="radio" name="status" id="status" checked>
                       私有文献
                      </label>
                      <label class="radio">
                        <input type="radio" name="status" id="status" value="1" >
                        公有文献
                      </label>
                    <else />
                      <label class="radio">
                        <input value="0"  type="radio" name="status" id="status">
                       私有文献
                      </label>
                      <label class="radio">
                        <input type="radio" name="status" id="status" value="1" checked>
                        公有文献
                      </label>
                    </if> 
                    </div>
                  </div>

                  <div class="control-group">
                    <label class="control-label" for="">摘要</label>
                    <div class="controls">
                      <textarea name="abstract" id="abstract" class="span5" cols="30" rows="10" placeholder="摘要">{$doc.abstract}</textarea>
                    </div>
                  </div>

                  <div class="control-group">
                    <label class="control-label" for="">创建时间</label>
                    <div class="controls">
                      <input type="text" value="{$doc.createtime}" readonly="true">
                    </div>
                  </div>
                  <div class="control-group">
                    <div class="controls">
                      <button type="submit" id="submit" class="btn btn-primary span2">修改</button>
                    </div>
                  </div>
                </form>
            </div>
    </div>
</div>
